<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="theme-color" content="#4facfe">
    <title>欢迎卡片生成器</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>欢迎卡片生成器</h1>
            <p>上传图片并填写信息，生成个性化欢迎卡片</p>
        </header>

        <div class="input-section">
            <div class="form-group">
                <label for="imageUpload">上传图片：</label>
                <input type="file" id="imageUpload" accept="image/*">
                <div class="preview-container" id="imagePreview">
                    <span>图片预览区域</span>
                </div>
            </div>

            <div class="form-group">
                <label for="numberInput">编号：</label>
                <input type="text" id="numberInput" placeholder="请输入编号（如：001、VIP2024）">
            </div>

            <div class="form-group">
                <label for="nameInput">昵称：</label>
                <input type="text" id="nameInput" placeholder="请输入昵称（如：小明、Alice）">
            </div>

            <button id="generateBtn" class="generate-btn">生成卡片</button>
        </div>

        <div class="card-section" id="cardSection" style="display: none;">
            <h2>生成的欢迎卡片</h2>
            <div class="card-preview">
                <canvas id="cardCanvas" width="800" height="450"></canvas>
            </div>
            <button id="downloadBtn" class="download-btn">下载卡片</button>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>